package com.yonyou.isv.demo.openapi.api.user;

import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataArrayResponse;
import com.yonyou.isv.demo.openapi.api.BaseOpenApi;
import com.yonyou.isv.demo.openapi.api.OpenApiURL;
import org.springframework.http.HttpEntity;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @description: 用友开放平台用户管理接口
 * @author:zpp
 * @create: 2021-07-19
 * @modifyUser nishch  使用协同接口获取用户信息  2021-09-06
 **/
@Component
public class UserApi extends BaseOpenApi {

    public List<Map<String,Object>> listUserById(HttpEntity<Map<String,Object>> httpEntity)
    {
        ApiDataArrayResponse apiDataResponse = postForEntity(OpenApiURL.USER_LIST_IDS, httpEntity, ApiDataArrayResponse.class);
        return getData(apiDataResponse);
    }

}
